-- GENERATED SPELL FOR [Cruel Overseer] --


function spell0_31853(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31853', 2319, 1)
end

function spell1_31853(pUnit, Event) --@Crush,Self--
pUnit:FullCastSpellOnTarget(49639,pUnit)
pUnit:RegisterEvent('Sorts_31853', 538, 1)
end

function Sorts_31853(pUnit, Event)
local choix_sorts_31853 = math.random(0, 1)
if choix_sorts_31853 == 0 then
pUnit:RegisterEvent('spell0_31853', 1, 1)
end
if choix_sorts_31853 == 1 then
pUnit:RegisterEvent('spell1_31853', 1, 1)
end
end

function mob31853_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31853', math.random(1500, 3000), 1)
end

function mob31853_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31853_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31853_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31853, 1, 'mob31853_Action')
RegisterUnitEvent(31853, 2, 'mob31853_Leave')
RegisterUnitEvent(31853, 3, 'mob31853_Kill')
RegisterUnitEvent(31853, 4, 'mob31853_Die')
